package percentageLetter;

public class Solution {
    public int percentageLetter(String s, char letter) {
        int t = 0;
        for (int i = 0; i < s.length(); i++) {
            if(s.charAt(i) == letter)t++;
        }
        return (int)(t*1.0/s.length()*100);
    }
}
